package org.wu.spring.db.integration.compare.domain.model.orm.compare.records;

import org.wu.framework.lazy.orm.database.lambda.domain.LazyPage;
import org.wu.framework.web.response.Result;

import java.util.List;


/**
 * describe Orm 操作记录 
 *
 * @author Jia wei Wu
 * @date 2024/02/28 01:02 下午
 * @see org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyDomainRepository 
 **/

public interface DbCompareRecordsRepository {


    /**
     * describe 新增Orm 操作记录
     *
     * @param dbCompareRecords 新增Orm 操作记录
     * @return {@link  Result< DbCompareRecords >} Orm 操作记录新增后领域对象
     
     * @author Jia wei Wu
     * @date 2024/02/28 01:02 下午
     **/
    Result<DbCompareRecords> story(DbCompareRecords dbCompareRecords);

    /**
     * describe 批量新增Orm 操作记录
     *
     * @param dbCompareRecordsList 批量新增Orm 操作记录
     * @return {@link Result <List<DbCompareRecords>>} Orm 操作记录新增后领域对象集合
     
     * @author Jia wei Wu
     * @date 2024/02/28 01:02 下午
     **/

    Result<List<DbCompareRecords>> batchStory(List<DbCompareRecords> dbCompareRecordsList);

    /**
     * describe 查询单个Orm 操作记录
     *
     * @param dbCompareRecords 查询单个Orm 操作记录
     * @return {@link Result< DbCompareRecords >} Orm 操作记录DTO对象
     
     * @author Jia wei Wu
     * @date 2024/02/28 01:02 下午
     **/

    Result<DbCompareRecords> findOne(DbCompareRecords dbCompareRecords);

    /**
     * describe 查询多个Orm 操作记录
     *
     * @param dbCompareRecords 查询多个Orm 操作记录
     * @return {@link Result<List< DbCompareRecords >>} Orm 操作记录DTO对象
     
     * @author Jia wei Wu
     * @date 2024/02/28 01:02 下午
     **/

    Result<List<DbCompareRecords>> findList(DbCompareRecords dbCompareRecords);

    /**
     * describe 分页查询多个Orm 操作记录
     *
     * @param size 当前页数
     * @param current 当前页
     * @param dbCompareRecords 分页查询多个Orm 操作记录
     * @return {@link Result<LazyPage< DbCompareRecords >>} 分页Orm 操作记录领域对象
     
     * @author Jia wei Wu
     * @date 2024/02/28 01:02 下午
     **/

    Result<LazyPage<DbCompareRecords>> findPage(int size, int current, DbCompareRecords dbCompareRecords);

    /**
     * describe 删除Orm 操作记录
     *
     * @param dbCompareRecords 删除Orm 操作记录
     * @return {@link Result< DbCompareRecords >} Orm 操作记录
     
     * @author Jia wei Wu
     * @date 2024/02/28 01:02 下午
     **/

    Result<DbCompareRecords> remove(DbCompareRecords dbCompareRecords);

    /**
     * describe 是否存在Orm 操作记录
     *
     * @param dbCompareRecords 是否存在Orm 操作记录
     * @return {@link Result<Boolean>} Orm 操作记录是否存在     
     
     * @author Jia wei Wu
     * @date 2024/02/28 01:02 下午
     **/

    Result<Boolean> exists(DbCompareRecords dbCompareRecords);

}